<?php

class m120615_114717_alter_insurance extends EDbMigration {

	public function safeUp() {
		$this->addColumn('insurances', 'ownerClass', 'varchar(16)');
		$this->renameColumn('insurances', 'employeeId', 'ownerId');
	}

	public function safeDown() {
		$this->renameColumn('insurances', 'ownerId', 'employeeId');
		$this->dropColumn('insurances', 'ownerClass');
	}

}